package com.gxa.employment.exception;

/**
 * @Description:
 * @Author:
 * @DateTime: 2024/12/18 20:00
 **/
public class BizException extends Exception {
    private Integer code;

    public BizException(ErrorMessage errorMessage) {
        super(errorMessage.getMessage());
        this.code = errorMessage.getCode();
    }
    public Integer getCode(){
        return code;
    }
}
